import request from './fileUploadRequest'

export function fileUpload(file: any) {
  const files = new FormData()
  files.append('file', file.file)
  return request({
    url: '/system/fileMinio/minioUpload',
    method: 'post',
    data: files
  })
}

// 根据fileId 删除文件
export function deleteFileSystem(fileId: [string, number]) {
  return request({
    url: `/system/fileMinio/minioDelete/${fileId}`,
    method: 'get'
  })
}
